package cz.proks.simplecalendarmanager.server.listener;

import java.util.logging.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import cz.proks.simplecalendarmanager.server.Configuration;

public class InitialServerListener implements ServletContextListener {
	private final static Logger log = Logger.getLogger(InitialServerListener.class.getSimpleName());

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		log.info("contextInitialized():: start");
		
		Configuration.load();
		
		log.info("contextInitialized():: end");
		
	}
	
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		log.info("Server shutdown");
	}	
}
